PdhCloseQuery (VB)
The Visual
Basic PdhCloseQuery
PdhCloseQuery(
ByVal QueryHandle as Long) |
|
as Long |
|
Parameters
QueryHandle
The ID of the
query to close and delete. Closing a query closes all the counters associated
with the query.
Return Values
If the
function succeeds, it returns a Long integer equal to ERROR_SUCCESS.
If the
function fails, the return value is a PDH error status defined in PDHDEFS.TXT.
The following is a possible error value:
PDH_INVALID_HANDLE
The handle is
invalid.